#列表的练习
# mylist=[21,25,21,23,22,20]
# mylist.insert(0,31)
# print(mylist)
# list1=[29,33,30]
# mylist.extend(list1)#追加很多个元素
# print(mylist)
# print(mylist.pop(0))
# print(mylist.pop())
# print(mylist.index(31))
#列表的案例练习 去出列表中的偶数
# list1=list()
# list2=[]
# list3=[]
# for i in range(1,11):
#     list1.append(i)
# print(list1)
# #取偶数
# i=0
# while i<len(list1):
#     if list1[i]%2==0:
#         list2.append(list1[i])
#     i+=1
# print(list2)
# #取奇数
# for j in list1:
#     if j%2!=0:
#         list3.append(j)
# print(list3)

